//
//  DR_EmptyView.swift
//  DocReaderRP
//
//  Created by  mac on 2025/11/13.
//

import UIKit

class DR_EmptyView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        addSubview(emptyImg)
        addSubview(emptyLab)
        
        emptyImg.snp.makeConstraints { make in
            make.top.centerX.equalToSuperview()
            make.width.equalTo(168)
            make.height.equalTo(150)
        }
        emptyLab.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(emptyImg.snp.bottom)
        }
    }
    
    private let emptyImg: UIImageView = {
        let v = UIImageView()
        v.image = "common_empty".toImage
        v.contentMode = .scaleAspectFill
        return v
    }()
    private let emptyLab: UILabel = {
        let v = UILabel()
        v.text = "common_empty".localized
        v.textAlignment = .center
        v.textColor = "#A6A6A6".toColor
        return v
    }()
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
